var current_page_settings = new Hash();

function getValue(key) 
{
  return current_page_settings.get(key);
}

function setValue(key,value)
{
  current_page_settings.set(key,value);
}

function show_pump ()
{
  $("pump").setStyle({    
    height:($('head').getHeight() + $('body').getHeight() + $('bottom').getHeight()) + 'px'
  });
  $("pump") .show() ;
}
//隐藏全屏覆盖层
function hide_pump()
{
  $("pump") .hide() ;
}

function fetion_sm_state_name(state)
{
  if(state == 'SUCCESS')
  {
      return "成功";
  }
  if(state == 'SSI_AUTH_FAIL')
  {
      return "你输入的手机号或者密码不对";
  }
  if(state == 'SSI_CONNECT_FAIL')
  {
      return "SSI连接失败";
  }
  if(state == 'SIPC_CONNECT_FAIL')
  {
      return "SIPC服务器连接失败";
  }
  if(state == 'SSI_NEED_VERIFY')
  {
      return "需要验证";
  }
  if(state == 'SSI_VERIFY_FAIL')
  {
      return "验证码不正确";
  }
  if(state == 'cmcc_mobile_requested')
  {
      return "手机号必须是中国移动的";
  }
  if(state == 'mobile_requested')
  {
      return "手机号必填";
  }
  if(state == 'password_requested')
  {
      return "密码不正确";
  }
  if(state == 'content_requested')
  {
      return "短信内容必填";
  }
  return state;
}